import { ref } from 'vue'
import { ItemType } from "@/components/types/types"


const bill = ref<ItemType[]>([
  {
    label: '名称',
    model: 'name',
    placeholder: '请输入',
    required: true,
    disabled: false,
    message: '请输入名称',
    type: 'input'
  },
  {
    label: '发布人',
    model: 'publishedBy',
    placeholder: '请输入',
    required: true,
    disabled: false,
    message: '请输入发布人',
    type: 'input'
  },
  {
    label: '发布时间',
    model: 'publishedTime',
    required: true,
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    message: '请选择发布时间：',
    setTime: 'publishedTime',
  },
  {
    label: '分类',
    model: 'type',
    placeholder: '请选择',
    dict: 'training_management_classification',
    type: 'select',
    required: true,
    disabled: false,
    message: '请选择分类',
    selectData: []
  },
  {
    label: '品种',
    model: 'drugId',
    placeholder: '请选择',
    type: 'select',
    url: '/base/drug/list',
    message: '请选择品种',
    selectData: []
  },
  {
    label: '会议召开时间',
    model: 'trainingTime',
    required: true,
    placeholder: '选择时间',
    type: 'beginTime',
    timeType: 'datetime',
    message: '请选择会议召开时间',
    setTime: 'trainingTime',
  },
  {
    label: '会议地点',
    model: 'trainingAddress',
    placeholder: '请输入',
    required: true,
    disabled: false,
    message: '请输入会议地点',
    type: 'input'
  },
  {
    label: '状态',
    model: 'status',
    dict: 'training_manage_type',
    placeholder: '请选择',
    type: 'select',
    required: false,
    disabled: true,
    message: '请选择状态',
    selectData: []
  },
])
interface Parmes {
  // status?: number;
  // billingStatus?: number;
  accountTime?: any;
  setTime?: any,
  intro?: any,
  [prop:string]: any
}
const datas = ref<Parmes>({

})
export default { bill, datas }